/*
* HTTP/1.1 200 OK
*body
* */


import java.util.Objects;

public class Response_info {

    public int responseCode;

    public String requsetMethod;

    public String responseBody;

    public Response_info() {
    }

    public Response_info(int responseCode, String requsetMethod, String responseBody) {
        this.responseCode = responseCode;
        this.requsetMethod = requsetMethod;
        this.responseBody = responseBody;
    }


    public int getResponseCode() {
        return responseCode;
    }

    public void setResponseCode(int responseCode) {
        this.responseCode = responseCode;
    }

    public String getRequsetMethod() {
        return requsetMethod;
    }

    public void setRequsetMethod(String requsetMethod) {
        this.requsetMethod = requsetMethod;
    }

    public String getResponseBody() {
        return responseBody;
    }

    public void setResponseBody(String responseBody) {
        this.responseBody = responseBody;
    }

    @Override
    public String toString() {
        return "Response_info{" +
                "responseCode=" + responseCode +
                "requsetMethod=" + requsetMethod + '\n' +
                "responseBody=" + responseBody + '\n' +
                '}';
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        Response_info that = (Response_info) o;
        return responseCode == that.responseCode && Objects.equals(requsetMethod, that.requsetMethod) && Objects.equals(responseBody, that.responseBody);
    }

    @Override
    public int hashCode() {
        return Objects.hash(responseCode, requsetMethod, responseBody);
    }
}
